/**
 * 
 */
package com.wordpress.sharebyblog.world.domain;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author Bharat Mehta
 *
 */
@Entity
@XmlRootElement(name="countryLanguage")
@XmlAccessorType(XmlAccessType.FIELD)
public class CountryLanguage implements Serializable{

	@XmlElement
	private String countryCode;
	@XmlElement
	private String language;
	@XmlElement
	private String isOfficial;
	@XmlElement
	private Float  percentage;
	/**
	 * @return the countryCode
	 */
	public String getCountryCode() {
		return countryCode;
	}
	/**
	 * @param countryCode the countryCode to set
	 */
	public void setCountryCode(String countryCode) {
		this.countryCode = countryCode;
	}
	/**
	 * @return the language
	 */
	public String getLanguage() {
		return language;
	}
	/**
	 * @param language the language to set
	 */
	public void setLanguage(String language) {
		this.language = language;
	}
	/**
	 * @return the isOfficial
	 */
	public String getIsOfficial() {
		return isOfficial;
	}
	/**
	 * @param isOfficial the isOfficial to set
	 */
	public void setIsOfficial(String isOfficial) {
		this.isOfficial = isOfficial;
	}
	/**
	 * @return the percentage
	 */
	public Float getPercentage() {
		return percentage;
	}
	/**
	 * @param percentage the percentage to set
	 */
	public void setPercentage(Float percentage) {
		this.percentage = percentage;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("CountryLanguage [countryCode=");
		builder.append(countryCode);
		builder.append(", language=");
		builder.append(language);
		builder.append(", isOfficial=");
		builder.append(isOfficial);
		builder.append(", percentage=");
		builder.append(percentage);
		builder.append("]");
		return builder.toString();
	}
	
	
	
	
	
	
}
